package cn.seecoder.courselearning.vo.test;

import cn.seecoder.courselearning.po.test.Submit;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class SubmitVO {

    /**
     * 用户id
     */
    private Integer uid;

    /**
     * 测试id
     */
    private Integer tid;

    /**
     * 题目id
     */
    private Integer qid;

    /**
     * 用户答案
     */
    private char ans;

    public SubmitVO(Submit submit){
        uid = submit.getUid();
        tid = submit.getTid();
        qid = submit.getQid();
        ans = submit.getAns();
    }

}
